package com.yili.oa.models;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class AllGameExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public AllGameExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andGameIdIsNull() {
            addCriterion("game_id is null");
            return (Criteria) this;
        }

        public Criteria andGameIdIsNotNull() {
            addCriterion("game_id is not null");
            return (Criteria) this;
        }

        public Criteria andGameIdEqualTo(Long value) {
            addCriterion("game_id =", value, "gameId");
            return (Criteria) this;
        }

        public Criteria andGameIdNotEqualTo(Long value) {
            addCriterion("game_id <>", value, "gameId");
            return (Criteria) this;
        }

        public Criteria andGameIdGreaterThan(Long value) {
            addCriterion("game_id >", value, "gameId");
            return (Criteria) this;
        }

        public Criteria andGameIdGreaterThanOrEqualTo(Long value) {
            addCriterion("game_id >=", value, "gameId");
            return (Criteria) this;
        }

        public Criteria andGameIdLessThan(Long value) {
            addCriterion("game_id <", value, "gameId");
            return (Criteria) this;
        }

        public Criteria andGameIdLessThanOrEqualTo(Long value) {
            addCriterion("game_id <=", value, "gameId");
            return (Criteria) this;
        }

        public Criteria andGameIdIn(List<Long> values) {
            addCriterion("game_id in", values, "gameId");
            return (Criteria) this;
        }

        public Criteria andGameIdNotIn(List<Long> values) {
            addCriterion("game_id not in", values, "gameId");
            return (Criteria) this;
        }

        public Criteria andGameIdBetween(Long value1, Long value2) {
            addCriterion("game_id between", value1, value2, "gameId");
            return (Criteria) this;
        }

        public Criteria andGameIdNotBetween(Long value1, Long value2) {
            addCriterion("game_id not between", value1, value2, "gameId");
            return (Criteria) this;
        }

        public Criteria andGameNameIsNull() {
            addCriterion("game_name is null");
            return (Criteria) this;
        }

        public Criteria andGameNameIsNotNull() {
            addCriterion("game_name is not null");
            return (Criteria) this;
        }

        public Criteria andGameNameEqualTo(String value) {
            addCriterion("game_name =", value, "gameName");
            return (Criteria) this;
        }

        public Criteria andGameNameNotEqualTo(String value) {
            addCriterion("game_name <>", value, "gameName");
            return (Criteria) this;
        }

        public Criteria andGameNameGreaterThan(String value) {
            addCriterion("game_name >", value, "gameName");
            return (Criteria) this;
        }

        public Criteria andGameNameGreaterThanOrEqualTo(String value) {
            addCriterion("game_name >=", value, "gameName");
            return (Criteria) this;
        }

        public Criteria andGameNameLessThan(String value) {
            addCriterion("game_name <", value, "gameName");
            return (Criteria) this;
        }

        public Criteria andGameNameLessThanOrEqualTo(String value) {
            addCriterion("game_name <=", value, "gameName");
            return (Criteria) this;
        }

        public Criteria andGameNameLike(String value) {
            addCriterion("game_name like", value, "gameName");
            return (Criteria) this;
        }

        public Criteria andGameNameNotLike(String value) {
            addCriterion("game_name not like", value, "gameName");
            return (Criteria) this;
        }

        public Criteria andGameNameIn(List<String> values) {
            addCriterion("game_name in", values, "gameName");
            return (Criteria) this;
        }

        public Criteria andGameNameNotIn(List<String> values) {
            addCriterion("game_name not in", values, "gameName");
            return (Criteria) this;
        }

        public Criteria andGameNameBetween(String value1, String value2) {
            addCriterion("game_name between", value1, value2, "gameName");
            return (Criteria) this;
        }

        public Criteria andGameNameNotBetween(String value1, String value2) {
            addCriterion("game_name not between", value1, value2, "gameName");
            return (Criteria) this;
        }

        public Criteria andGameStatusIsNull() {
            addCriterion("game_status is null");
            return (Criteria) this;
        }

        public Criteria andGameStatusIsNotNull() {
            addCriterion("game_status is not null");
            return (Criteria) this;
        }

        public Criteria andGameStatusEqualTo(Integer value) {
            addCriterion("game_status =", value, "gameStatus");
            return (Criteria) this;
        }

        public Criteria andGameStatusNotEqualTo(Integer value) {
            addCriterion("game_status <>", value, "gameStatus");
            return (Criteria) this;
        }

        public Criteria andGameStatusGreaterThan(Integer value) {
            addCriterion("game_status >", value, "gameStatus");
            return (Criteria) this;
        }

        public Criteria andGameStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("game_status >=", value, "gameStatus");
            return (Criteria) this;
        }

        public Criteria andGameStatusLessThan(Integer value) {
            addCriterion("game_status <", value, "gameStatus");
            return (Criteria) this;
        }

        public Criteria andGameStatusLessThanOrEqualTo(Integer value) {
            addCriterion("game_status <=", value, "gameStatus");
            return (Criteria) this;
        }

        public Criteria andGameStatusIn(List<Integer> values) {
            addCriterion("game_status in", values, "gameStatus");
            return (Criteria) this;
        }

        public Criteria andGameStatusNotIn(List<Integer> values) {
            addCriterion("game_status not in", values, "gameStatus");
            return (Criteria) this;
        }

        public Criteria andGameStatusBetween(Integer value1, Integer value2) {
            addCriterion("game_status between", value1, value2, "gameStatus");
            return (Criteria) this;
        }

        public Criteria andGameStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("game_status not between", value1, value2, "gameStatus");
            return (Criteria) this;
        }

        public Criteria andGameCreateTimeIsNull() {
            addCriterion("game_create_time is null");
            return (Criteria) this;
        }

        public Criteria andGameCreateTimeIsNotNull() {
            addCriterion("game_create_time is not null");
            return (Criteria) this;
        }

        public Criteria andGameCreateTimeEqualTo(Date value) {
            addCriterion("game_create_time =", value, "gameCreateTime");
            return (Criteria) this;
        }

        public Criteria andGameCreateTimeNotEqualTo(Date value) {
            addCriterion("game_create_time <>", value, "gameCreateTime");
            return (Criteria) this;
        }

        public Criteria andGameCreateTimeGreaterThan(Date value) {
            addCriterion("game_create_time >", value, "gameCreateTime");
            return (Criteria) this;
        }

        public Criteria andGameCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("game_create_time >=", value, "gameCreateTime");
            return (Criteria) this;
        }

        public Criteria andGameCreateTimeLessThan(Date value) {
            addCriterion("game_create_time <", value, "gameCreateTime");
            return (Criteria) this;
        }

        public Criteria andGameCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("game_create_time <=", value, "gameCreateTime");
            return (Criteria) this;
        }

        public Criteria andGameCreateTimeIn(List<Date> values) {
            addCriterion("game_create_time in", values, "gameCreateTime");
            return (Criteria) this;
        }

        public Criteria andGameCreateTimeNotIn(List<Date> values) {
            addCriterion("game_create_time not in", values, "gameCreateTime");
            return (Criteria) this;
        }

        public Criteria andGameCreateTimeBetween(Date value1, Date value2) {
            addCriterion("game_create_time between", value1, value2, "gameCreateTime");
            return (Criteria) this;
        }

        public Criteria andGameCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("game_create_time not between", value1, value2, "gameCreateTime");
            return (Criteria) this;
        }

        public Criteria andGameXimaIsNull() {
            addCriterion("game_xima is null");
            return (Criteria) this;
        }

        public Criteria andGameXimaIsNotNull() {
            addCriterion("game_xima is not null");
            return (Criteria) this;
        }

        public Criteria andGameXimaEqualTo(Float value) {
            addCriterion("game_xima =", value, "gameXima");
            return (Criteria) this;
        }

        public Criteria andGameXimaNotEqualTo(Float value) {
            addCriterion("game_xima <>", value, "gameXima");
            return (Criteria) this;
        }

        public Criteria andGameXimaGreaterThan(Float value) {
            addCriterion("game_xima >", value, "gameXima");
            return (Criteria) this;
        }

        public Criteria andGameXimaGreaterThanOrEqualTo(Float value) {
            addCriterion("game_xima >=", value, "gameXima");
            return (Criteria) this;
        }

        public Criteria andGameXimaLessThan(Float value) {
            addCriterion("game_xima <", value, "gameXima");
            return (Criteria) this;
        }

        public Criteria andGameXimaLessThanOrEqualTo(Float value) {
            addCriterion("game_xima <=", value, "gameXima");
            return (Criteria) this;
        }

        public Criteria andGameXimaIn(List<Float> values) {
            addCriterion("game_xima in", values, "gameXima");
            return (Criteria) this;
        }

        public Criteria andGameXimaNotIn(List<Float> values) {
            addCriterion("game_xima not in", values, "gameXima");
            return (Criteria) this;
        }

        public Criteria andGameXimaBetween(Float value1, Float value2) {
            addCriterion("game_xima between", value1, value2, "gameXima");
            return (Criteria) this;
        }

        public Criteria andGameXimaNotBetween(Float value1, Float value2) {
            addCriterion("game_xima not between", value1, value2, "gameXima");
            return (Criteria) this;
        }

        public Criteria andGamePlatformIsNull() {
            addCriterion("game_platform is null");
            return (Criteria) this;
        }

        public Criteria andGamePlatformIsNotNull() {
            addCriterion("game_platform is not null");
            return (Criteria) this;
        }

        public Criteria andGamePlatformEqualTo(Long value) {
            addCriterion("game_platform =", value, "gamePlatform");
            return (Criteria) this;
        }

        public Criteria andGamePlatformNotEqualTo(Long value) {
            addCriterion("game_platform <>", value, "gamePlatform");
            return (Criteria) this;
        }

        public Criteria andGamePlatformGreaterThan(Long value) {
            addCriterion("game_platform >", value, "gamePlatform");
            return (Criteria) this;
        }

        public Criteria andGamePlatformGreaterThanOrEqualTo(Long value) {
            addCriterion("game_platform >=", value, "gamePlatform");
            return (Criteria) this;
        }

        public Criteria andGamePlatformLessThan(Long value) {
            addCriterion("game_platform <", value, "gamePlatform");
            return (Criteria) this;
        }

        public Criteria andGamePlatformLessThanOrEqualTo(Long value) {
            addCriterion("game_platform <=", value, "gamePlatform");
            return (Criteria) this;
        }

        public Criteria andGamePlatformIn(List<Long> values) {
            addCriterion("game_platform in", values, "gamePlatform");
            return (Criteria) this;
        }

        public Criteria andGamePlatformNotIn(List<Long> values) {
            addCriterion("game_platform not in", values, "gamePlatform");
            return (Criteria) this;
        }

        public Criteria andGamePlatformBetween(Long value1, Long value2) {
            addCriterion("game_platform between", value1, value2, "gamePlatform");
            return (Criteria) this;
        }

        public Criteria andGamePlatformNotBetween(Long value1, Long value2) {
            addCriterion("game_platform not between", value1, value2, "gamePlatform");
            return (Criteria) this;
        }

        public Criteria andGameKindIsNull() {
            addCriterion("game_kind is null");
            return (Criteria) this;
        }

        public Criteria andGameKindIsNotNull() {
            addCriterion("game_kind is not null");
            return (Criteria) this;
        }

        public Criteria andGameKindEqualTo(Long value) {
            addCriterion("game_kind =", value, "gameKind");
            return (Criteria) this;
        }

        public Criteria andGameKindNotEqualTo(Long value) {
            addCriterion("game_kind <>", value, "gameKind");
            return (Criteria) this;
        }

        public Criteria andGameKindGreaterThan(Long value) {
            addCriterion("game_kind >", value, "gameKind");
            return (Criteria) this;
        }

        public Criteria andGameKindGreaterThanOrEqualTo(Long value) {
            addCriterion("game_kind >=", value, "gameKind");
            return (Criteria) this;
        }

        public Criteria andGameKindLessThan(Long value) {
            addCriterion("game_kind <", value, "gameKind");
            return (Criteria) this;
        }

        public Criteria andGameKindLessThanOrEqualTo(Long value) {
            addCriterion("game_kind <=", value, "gameKind");
            return (Criteria) this;
        }

        public Criteria andGameKindIn(List<Long> values) {
            addCriterion("game_kind in", values, "gameKind");
            return (Criteria) this;
        }

        public Criteria andGameKindNotIn(List<Long> values) {
            addCriterion("game_kind not in", values, "gameKind");
            return (Criteria) this;
        }

        public Criteria andGameKindBetween(Long value1, Long value2) {
            addCriterion("game_kind between", value1, value2, "gameKind");
            return (Criteria) this;
        }

        public Criteria andGameKindNotBetween(Long value1, Long value2) {
            addCriterion("game_kind not between", value1, value2, "gameKind");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}